<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core" xmlns:sec="http://www.springframework.org/security/facelets/tags">

<h:form id="form">
    <h:panelGrid columns="2" columnClasses="cols,cols" width="400">
    <rich:panelMenu style="width:200px"  mode="ajax" 
        iconExpandedGroup="disc" iconCollapsedGroup="disc" 
        iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right" 
        iconCollapsedTopGroup="chevronDown">
        <rich:panelMenuGroup label="Inboxes de Ocorrencias" expanded="true">
            <rich:panelMenuItem label="Meu Inbox" action="#{panelMenu.updateCurrent}">
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Inbox Geral" action="#{panelMenu.updateCurrent}">
                <f:param name="current" value="Item 1.2"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Inbox Geral por Atendentes" action="#{panelMenu.updateCurrent}">
                <f:param name="current" value="Item 1.3"/>
            </rich:panelMenuItem>
        </rich:panelMenuGroup>
        <rich:panelMenuGroup label="Cadastros">
            <rich:panelMenuItem label="Usuários" reRender="conteudo" id="idPessoaMB" actionListener="#{pessoaMB.selecionaPag}" >
            	<a4j:actionparam name="selecionaPag" value="pessoaMB.jsf" assignTo="#{pessoaMB.selecionaPag}" reRender="conteudo"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Instituição" action="#{panelMenu.updateCurrent}">
                <f:param name="current" value="Item 2.3"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem   label="Criar Ocorrencia" action="#{panelMenu.updateCurrent}">
                <f:param name="current" value="Item 2.2"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Periférico" action="#{panelMenu.updateCurrent}">
                <f:param name="current" value="Item 2.3"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Status" action="#{panelMenu.updateCurrent}">
                <f:param name="current" value="Item 2.3"/>
            </rich:panelMenuItem>
        </rich:panelMenuGroup>
        <rich:panelMenuGroup label="Relatórios">
            <rich:panelMenuItem label="Usuários" action="#{panelMenu.updateCurrent}">
                    <f:param name="current" value="Item 3.1"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Ocorrencias" action="#{panelMenu.updateCurrent}">
                    <f:param name="current" value="Item 3.2"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Periféricos" action="#{panelMenu.updateCurrent}">
                    <f:param name="current" value="Item 3.3"/>
            </rich:panelMenuItem>
        </rich:panelMenuGroup>

        <rich:panelMenuGroup label="Gráficos">
            <rich:panelMenuItem label="Ocorrencias" action="#{panelMenu.updateCurrent}">
                    <f:param name="current" value="Item 3.1"/>
            </rich:panelMenuItem>
            <rich:panelMenuItem label="Periféricos" action="#{panelMenu.updateCurrent}">
                    <f:param name="current" value="Item 3.2"/>
            </rich:panelMenuItem>
        </rich:panelMenuGroup>        
    </rich:panelMenu>
    </h:panelGrid>
 </h:form>

</html>